<?php
/**
 * Created by PhpStorm.
 * User: DINGHAO
 * Date: 2018/10/24
 * Time: 21:41
 */
namespace Admin\Controller;
class IndexController extends CommonController {
    public function  index(){
        $this->display();
    }
    public function  cp_index(){
        $info = array(
            '操作系统'=>PHP_OS,
            '运行环境'=>$_SERVER["SERVER_SOFTWARE"],
            'PHP运行方式'=>php_sapi_name(),
            'ThinkPHP版本'=>THINK_VERSION.' [ <a href="http://thinkphp.cn" target="_blank">查看最新版本</a> ]',
            '上传附件限制'=>ini_get('upload_max_filesize'),
            '执行时间限制'=>ini_get('max_execution_time').'秒',
            '服务器时间'=>date("Y年n月j日 H:i:s"),
            '服务器域名/IP'=>$_SERVER['SERVER_NAME'].' [ '.gethostbyname($_SERVER['SERVER_NAME']).' ]',

        );
        $this->assign('info',$info);
        $this->display();
    }
}